

<?php if (Yii::$app->user->isGuest): ?>
    <a href="/user/login" class="btn btn-success btn-sm">
        关注
    </a>
<?php elseif ($result): ?>
    <button type="button" id="attention_cancle" data-loading-text="已取消" class="btn btn-success btn-sm" autocomplete="off" qid="<?php echo $qid ?>">
        取消关注
    </button>
<?php else: ?>
    <button type="button" id="attention_add" data-loading-text="已关注" class="btn btn-success btn-sm" autocomplete="off" qid="<?php echo $qid ?>">
        关注
    </button>
<?php endif; ?>
